package study.day5.t9;

import java.util.Random;

public class T9 {
    public static void main(String[] args) {
        //客户预定蛋糕
        //蛋糕店制作蛋糕
        CakeShop cakeShop=new CakeShop();
        //蛋糕的类型
        String[] types={"慕斯","泡芙","红丝绒"};
        //蛋糕尺寸
        int[] size={6,8,10};
        //随机数
        Random random=new Random();
        for(String type:types){
            Cake cake = cakeShop.makeCake(type);
            int num = random.nextInt(3);
            cake.getCake(type,size[num]);
        }
        System.out.println("欢迎下次再来");
    }
}
